from django.db import models


class CsGoodsBarcodes(models.Model):
    shop_id = models.PositiveIntegerField()
    goods_id = models.PositiveIntegerField()
    barcode = models.CharField(max_length=16, blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'cs_goods_barcodes'
        unique_together = (('shop_id', 'goods_id', 'barcode'),)
